package cn.yhz.pethome.base.service;

import cn.yhz.pethome.base.util.BaseQuery;
import cn.yhz.pethome.base.util.ResultBean;
import cn.yhz.pethome.dept.domain.Department;

import java.util.List;

public interface IBaseService<T> {
    //查询所有+高级和分页
    ResultBean<T> queryAll(BaseQuery query);
    //根据id查询
    T selectById(Long id);
    //新增
    void insert(T t);
    //修改
    void update(T t);
    //删除
    void delete(Long id);
    //批量删除
    void batchDelete(List<Long> ids);

}
